#ifndef X2E_H
#define X2E_H

#include "common.h"

template <AllegroVersion version>
struct x2E
{
    uint32_t t;
    uint32_t k;
    uint32_t un[7];
#if __cplusplus >= 202002L
    COND_FIELD(version >= A_172, uint32_t, un1);
#endif
    uint32_t TAIL;
    operator x2E<A_174>() const;
    static constexpr AllegroVersion versions[1] = {A_172};
};

#if __cplusplus < 202002L
template <> struct x2E<A_172>
{
    uint32_t t;
    uint32_t k;
    uint32_t un[7];

    uint32_t un1;

    uint32_t TAIL;
    operator x2E<A_174>() const;
    static constexpr AllegroVersion versions[1] = {A_172};
};
template<> struct x2E<A_174> : x2E<A_172> {};
#endif

#endif // X2E_H
